package mytask.view;

import java.util.ArrayList;
import java.util.List;

public final class MenuBuilder {

    private final List<MenuItem> m_menu = new ArrayList<MenuItem>();
    
    public MenuBuilder() {
    }

    public void addItem(final String url, final String text) {
        m_menu.add(new MenuItem(url, text));
    }
    
    public List<MenuItem> build() {
        return m_menu;
    }
    
}
